<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="default" />
    <meta name="format-detection" content="telephone=no" />
    <link rel="stylesheet" type="text/css" href="./css/style.css">
    <link rel="stylesheet" type="text/css" href="./css/attention.css">
    <script type="text/javascript" src="./js/jquery-1.9.1.min.js"></script>
    <script src="./js/clipboard.min.js"></script>
	<title>关注公众号</title>
</head>
<body>
	<header class="header">
		<a href="javascript:window.history.back(-1);" class="back"></a>
		<h2 class="center">关注公众号</h2>
    </header>
    <div class="com">
        <img src="./image/logo.png" class="log" alt="">
        <p class="p1">关注公众号</p>
        <img src="./image/ewm.png" class="ewm" alt="">
        <p class="p2">点击下方按钮复制微信号，并去微信搜索公众号。</p>
        <a href="javascript:;" class="attention-btn" data-clipboard-text="中拓时代" id="copyCode">复制公众号去微信关注</a>
        <!-- <p class="p3">其他关注公众号方式</p> -->
    </div>
    <!--tk-->
    <div class="tkbox" id="tkbox">
        <div class="tkcom">
            <p id='messge'>已复制公众微信号</p>
            <div class="btns">
                <a href="javascript:;" class="no-btn" id="no">取消</a>
                <a href="javascript:;" class="yes-btn" id="yes">去关注</a>
            </div>
        </div>
    </div>
<script src="./js/H5brigeAPP.js"></script>
<script type="text/javascript">
    function Toast (txt){
        var toastHtml = '<div class="tk_info" id="tkInfo"></div>';
        var toast = $('body #tkInfo');
        if (toast.length) {
            toast.html(txt).show();
        }else{
            $('body').append(toastHtml);
            $('body #tkInfo').html(txt).show();
        }
        setTimeout(function(){
          $('body #tkInfo').hide();
        },2000)
    }
    var clipboard1 = new ClipboardJS('#copyCode');
    clipboard1.on('success', function(e){
        $('.tkbox').show();
        $('#yes').on('click',function(){
            $('.tkbox').hide();
            H5brigeAPP.MJWXOpen();
        })
    });
    //取消tkbox
    $('#no').on('click',function(){
        $('.tkbox').hide();
        $('#yes').off("click");
    })
    $('.tkbox').on('click',function(e){
        var obj = $(e.target);
        if (obj.attr('class') == 'tkbox') {
            $(this).hide();
            $('#yes').off("click");
            return false;
        }
    })
</script>
</body>
</html>